package com.homework.vehicle.Plane;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/26 19:35
 * @description
 */
public class FighterPlane extends Plane{
    private String fightplane;

    public FighterPlane() {
    }

    public FighterPlane(String type, String fightplane) {
        super(type);
        this.fightplane = fightplane;
    }

    public String getFightplane() {
        return fightplane;
    }

    public void setFightplane(String fightplane) {
        this.fightplane = fightplane;
    }

    @Override
    public void atk() {
        System.out.println("可以攻击");
    }

    @Override
    public void getInfo() {
        System.out.print(getType()+fightplane);
    }

    @Override
    public String toString() {
        return "FighterPlane{" +
                "fightplane='" + fightplane + '\'' +
                '}';
    }
}
